﻿using System;
using System.IO;

namespace SoftwareMonkeys.Scriptech.Diagnostics
{
	/// <summary>
	/// 
	/// </summary>
	static public class FrameworkChecker
	{
		/// <summary>
		/// Gets a value indicating whether the current framework is Mono.
		/// </summary>
		static public bool IsMono
		{
			get
			{
				// If the path is a forward slash then it's mono
				return Path.DirectorySeparatorChar == '/';
			}
		}
		
		/// <summary>
		/// Gets a value indicating whether the current framework is Windows .NET.
		/// </summary>
		static public bool IsWindows
		{
			get
			{
				return !IsMono;
			}
		}
	}
}
